<?php
/**
 * Form class
 * Utilities to create forms
 */
namespace PUF;

class Form {
	protected $webroot = '';
	
	public function __construct() {
		$this->webroot = Router::getInstance()->getWebroot();
	}
	
	public function getWebroot() {
		return $this->webroot;
	}
	
	public function form($options = [], $object = null) {
		
	}
	
	protected function isRelativeUrl($url) {
		return substr($url, 0, 4) != 'http'
				&& substr($url, 0, 3) != 'ftp'
				&& substr($url, 0, 6) != 'mailto';
	}
}